package cn.hnevc.shanghaowang;

public class Example27 {
	public static void main(String[] args) {
		int[] arr = { 10, 7, 6, 5, 1 };
		int sum = 0;
		for (int i = 0; i < arr.length; i++) {
			sum += arr[i];
			System.out.println(arr[i]);
		}
		System.out.println(sum);
	}

}
